﻿// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)

using Emotive.Otf.OtxEditor.Gui;
using System;
using Emotive.Otf.OtxEditor.Core;

namespace Emotive.Otf.OtxEditor.Editor.Commands
{
	public class InsertGuidCommand : AbstractMenuCommand
	{
		public override void Run()
		{
            //IViewContent viewContent = WorkbenchSingleton.Workbench.ActiveViewContent;
            //if (viewContent == null || !(viewContent is ITextEditorProvider)) {
            //    return;
            //}
			
            //ITextEditor textEditor = ((ITextEditorProvider)viewContent).TextEditor;
            //if (textEditor == null) {
            //    return;
            //}
			
            //string newGuid = Guid.NewGuid().ToString().ToUpperInvariant();
			
            //textEditor.SelectedText = newGuid;
            //textEditor.Select(textEditor.SelectionStart + textEditor.SelectionLength, 0);
		}
	}
}
